home *** CD-ROM | disk | FTP | other *** search
- Path: uicvm.uic.edu!u61441
- Organization: University of Illinois at Chicago, ADN Computer Center
- Date: Sat, 13 Apr 1996 23:35:54 CDT
- From: Sikander Waheed <U61441@uicvm.uic.edu>
- Message-ID: <96104.233554U61441@uicvm.uic.edu>
- Newsgroups: comp.lang.c
- Subject: saving system()'s output to a C variable?
-
- Hi,
- Is it possible to save the output of the system() command to
- a C variable? For example, when I have the line system("date")
- in my C program, I want the output of this command to go to a
- C variable (e.g. char array) instead of going on the stdout.
- Please send me email at swaheed@uic.edu
-
- Thanks,
- Sikander
-